package com.lxp.modules.system.service;

import com.lxp.common.core.domain.entity.SysUser;

public interface ISysPasswordService {

    /**
     * 登录账户密码错误次数缓存键名
     *
     * @param username 用户名
     * @return 缓存键key
     */
    String getCacheKey(String username);

    void validate(SysUser user);

    boolean matches(SysUser user, String rawPassword);

    void clearLoginRecordCache(String loginName);

}
